package com.aps.entity.domain.dish;

import javax.persistence.*;

import com.aps.entity.domain.BaseEntity;
import com.aps.entity.eunm.TimeUnitType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author liaoguangan
 * @description <上菜时间间隔>
 * @date 2018/4/1 14:55
 */

@Table(name = "aps_dish_interval")
@Entity
@Data
@ApiModel
public class DishInterval extends BaseEntity {

    @Column
    @ApiModelProperty("前序类别代码")
    private String preDishCode;

    @Column
    @ApiModelProperty("前序类别名称")
    private String preDishName;

    @Column
    @ApiModelProperty("后序类别代码")
    private String nextDishCode;

    @Column
    @ApiModelProperty("后序类别名称")
    private String nextDishName;

    @Column
    @ApiModelProperty("约束时长")
    private BigDecimal constraintTime;

    @Column
    @ApiModelProperty("约束时长单位")
    @Enumerated(EnumType.STRING)
    private TimeUnitType constraintTimeUnit;

}
